FROM cjpthree/centos7
RUN curl -o nginx.rpm http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm \
&& rpm -ivh nginx.rpm \
&& yum -y install nginx \
&& rm nginx.rpm \
&& yum clean all \
&& rm -rf /var/lib/yum/yumdb
CMD ["nginx", "-g", "daemon off;"]
